{% extends "base.html" %}

{% block main %}
<h3>{{article.title}}</h3>
<hr>
<span>{{article.author.username}} -- {{article.posttime}}</span>
<p>
    {{article.content}}
</p>
<span>{{article.reads}} - {{article.comments}}</span>
<hr>
<a href="/forum/add_comment?id={{article.id}}">AddComment</a>
{% for comment in article.comment_set.all %}
<span>{{comment.author.username}} - {{comment.posttime}} </span>
<p>{{comment.content}}</p>

{% endfor %}

{% endblock %}
